package cn.com.ayqu.module.erp.dal.mysql.statistics;

import cn.com.ayqu.module.erp.dal.dataobject.sale.ErpSaleOutItemDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * ERP 销售统计 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ErpSaleStatisticsMapper {

    BigDecimal getSalePrice(@Param("beginTime") LocalDateTime beginTime,
                            @Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> getSaleProfit(@Param("beginTime") LocalDateTime beginTime, @Param("endTime") LocalDateTime endTime);

    BigDecimal getSaleDiscountPrice(@Param("beginTime") LocalDateTime beginTime, @Param("endTime") LocalDateTime endTime);
}
